﻿<%template _header%>
<%namespace YouHP.Model%>
<%namespace YouHP.Utility%>
<%namespace YouHP.Model.Group%>
<%namespace YouHP.BLL%>

<div class="layout-cols2">

	
	<%csharp%>if(IsPost){ <%/csharp%>
	    <%template _MsgBox%>
	<%csharp%> } else { <%/csharp%>
	<div class="box">
	<div class="caption">小圈子邀请</div>
	      <div class="content">
	      <%if NewGroupInviteList.Count==0%><h1>还没有邀请！</h1><%else%>
	      <form method="post" action="" id="dataform">
	      <input type="hidden" id="inviteid" name="inviteid"/>
	      <input type="hidden" id="actiontype" name="actiontype"/>
	      <input type="hidden" id="groupid" name="groupid"/>
		<div class="groupinvitelist"> 
           <%csharp%>foreach(GroupInviteInfo info in NewGroupInviteList) { <%/csharp%>
          <p>{info.PostTime.ToString("yyyy-MM-dd")}</p>
          
            <%csharp%>TempUrl="/Profile/Index.aspx?uid="+info.PostUserId;<%/csharp%>
          <p><a href="{this.GetUrl(TempUrl)}">{info.PostUserName}</a>&nbsp;邀请你加入圈子：
          
           <%csharp%>TempUrl="/Group/Group.aspx?gid="+info.GroupId;<%/csharp%>
          <a href="{this.GetUrl(TempUrl)}">{info.GroupName}</a>&nbsp;&nbsp;
          
          <a href="javascript:_$('inviteid').value={info.Id};_$('actiontype').value={Constants.Received};_$('groupid').value={info.GroupId};_$('dataform').submit();" class="selectall">接受</a>
          <a href="javascript:_$('inviteid').value={info.Id};_$('actiontype').value={Constants.Rejected};_$('groupid').value={info.GroupId};_$('dataform').submit();" class="selectall">忽略</a>
          
          
          </p>
          <%csharp%> }<%/csharp%>
		</div>
		</form>
		<%/if%>
		</div>
	</div>
            <div style="clear:both;"></div>
            <div class="box">
             <div class="content">
            <div class="pages">
            {PageNumberString}
            </div>
            </div>
            </div>
	
	<%csharp%> } <%/csharp%>

	
</div>

<%template _footer%>		

